package com.example.beatbox;

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;

public class SoundViewModel extends BaseObservable {
    private  Sound mSound;
    private  BeatBox mBeatBox;
    public  SoundViewModel(BeatBox beatBox){
        mBeatBox=beatBox;
    }

    public Sound getmSound() {
        return mSound;
    }

    public void setmSound(Sound mSound) {
        this.mSound = mSound;
        notifyChange();
    }

    public BeatBox getmBeatBox() {
        return mBeatBox;
    }

    public void setmBeatBox(BeatBox mBeatBox) {
        this.mBeatBox = mBeatBox;

    }
    @Bindable
    public  String getTitle(){
        return mSound.getmName();
    }


}
